<template>
  <div class="demo-container">
    <div class="nav">
      <RouterLink to="draw">画板</RouterLink>
      <RouterLink to="icons">图标</RouterLink>
      <RouterLink to="search-bar">搜索框</RouterLink>
      <RouterLink to="goods-card">商品卡片</RouterLink>
      <RouterLink to="goods-list">商品列表</RouterLink>
    </div>
    <RouterView></RouterView>
  </div>
</template>
<script setup>

</script>

<style lang="less">
.demo-container {
  width: 100%;
  height: 100%;

  .nav {
    padding-left: 10px;
    width: 100%;
    display: flex;
    background: var(--blank-color);
    position: sticky;
    z-index: 1000;
    box-sizing: border-box;
    box-shadow: 1px 1px 10px #ededed;
    top: 0;
    box-sizing: border-box;
    > * {
      margin: 10px;
    }
  }

  .demo {
    padding: 10px;
    box-sizing: border-box;
  }

  .btns {
    display: flex;

    > *:not(:first-child) {
      margin-left: 5px;
    }
  }
}
</style>
